package com.lzx.dormsys.service;

import com.github.pagehelper.PageInfo;

import java.util.List;

public interface BaseService<T> {

    public int insert(T t);

    public int update(T t);

    public List<T> queryData(T t);

    /**
     *
     * @param t   查询条伯
     * @param pageSize 每页显示的记录条数
     * @param pageNum  当前显示第几页
     * @return
     */
    public PageInfo<T> queryData(T t, int pageSize, int pageNum);
    public int deleteByPrimaryKey(T t);

    public int deleteByPrimaryKey(String id); //主键  varchar

}
